<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <el-card shadow="always">
            <i class="el-icon-user-solid" style="font-size:25px"></i>
            <span style="font-size:25px">在线总人数</span>
            <el-divider></el-divider>
            <span style="font-size:25px">10&nbsp;&nbsp;人</span>
          </el-card>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <el-card shadow="always">
            <i class="el-icon-money" style="font-size:25px"></i>
            <span style="font-size:25px">总交易次数</span>
            <el-divider></el-divider>
            <span style="font-size:25px">10&nbsp;&nbsp;次</span>
          </el-card>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <el-card shadow="always">
            <i class="el-icon-coin" style="font-size:25px"></i>
            <span style="font-size:25px">总交易金额</span>
            <el-divider></el-divider>
            <span style="font-size:25px">1000&nbsp;&nbsp;RMB</span>
          </el-card>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="grid-content bg-purple">
          <el-card shadow="always">
            <i class="el-icon-star-on" style="font-size:25px"></i>
            <span style="font-size:25px">总盈利亏损</span>
            <el-divider></el-divider>
            <span style="font-size:25px">20&nbsp;&nbsp;RMB</span>
          </el-card>
        </div>
      </el-col>
    </el-row>
    <el-divider></el-divider>
    <el-table
      :data="tableData"
      style="width: 100%;font-size: 25px;">
      <el-table-column align="center"
        prop="onlineUsers"
        label="在线用户">
      </el-table-column>
      <el-table-column align="center"
        prop="number"
        label="交易次数">
      </el-table-column>
      <el-table-column align="center"
        prop="money"
        label="交易金额">
      </el-table-column>
      <el-table-column align="center"
        prop="profit"
        label="总盈利&亏损">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "DefaultPage",
  data() {
    return {
      tableData: [{
        onlineUsers: '张三',
        number: '5',
        money: '10',
        profit: '7'
      }, {
        onlineUsers: '李四',
        number: '6',
        money: '9',
        profit: '8'
      }, {
        onlineUsers: '王五',
        number: '7',
        money: '8',
        profit: '9'
      }, {
        onlineUsers: '赵六',
        number: '8',
        money: '7',
        profit: '10'
      }]
    }
  }
}
</script>

<style>
.el-row {
  margin-bottom: 20px;

&
:last-child {
  margin-bottom: 0;
}

}
.el-card {
  padding: 100px;
}

.el-col {
  border-radius: 4px;
}

.bg-purple-dark {
  background: #99a9bf;
}

.bg-purple {
  background: #d3dce6;
}

.bg-purple-light {
  background: #e5e9f2;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
